package com.kischang.blog.model;


public class PageInfo {
	private int pageNow = 1;	//当前页，默认为1
	private int pageSize = 5;	//每页显示的条数
	private int totalPage;		//总页数
	private String url;			//页面的完整url地址
		
	public PageInfo() {
		super();
	}
	public PageInfo(String url) {
		super();
		this.url = url;
	}
	public PageInfo(int pageSize) {
		super();
		this.pageSize = pageSize;
	}
	public PageInfo(int pageSize, String url) {
		super();
		this.pageSize = pageSize;
		this.url = url;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageNow() {
		return pageNow;
	}
	public void setPageNow(int pageNow) {
		this.pageNow = pageNow;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalcount) {
		if(totalcount%pageSize == 0){
			this.totalPage = totalcount / pageSize;
		}else{
			this.totalPage = totalcount / pageSize+1;
		}
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
}
